package Day10练习;

//在控制台打印出1-100之间的满足逢七必过规则的数据(数字带7 或是7的倍数)

public class demo03 {
    public static void main(String[] args) {
        for (int i = 1; i <= 100; i++) {
            if (i % 7 == 0 || i % 10 == 7 || i / 10 % 10 == 7){
                System.out.print(i + "  ");
            }
        }
    }
}
